import request from '@/utils/request'

export function queryPage(data) {
    return request({
        url: '/examPlan/queryPage',
        method: 'post',
        data
    })
}

export function isOnly(data) {
    return request({
        url: '/examPlan/isOnly',
        method: 'post',
        data
    })
}

export function getExamPlanById(id) {
    return request({
        url: '/examPlan/getExamPlanById/'+id,
        method: 'get',
    })
}

export function add(data) {
    return request({
        url: '/examPlan/add',
        method: 'post',
        data
    })
}

export function update(data) {
    return request({
        url: '/examPlan/update',
        method: 'put',
        data
    })
}

export function deleteById(ids) {
    return request({
        url: '/examPlan/delete?ids='+ids,
        method: 'delete',
    })
}